package com.walle.userservice.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangjiapeng
 * @Package com.walle.userservice.controller
 * @Description: ${todo}
 * @date 2018/12/29 14:19
 */
@RestController
@RequestMapping("/apollo")
public class ApolloController {

    @Value("${from}")
    private String from;

    @GetMapping("/hello")
    public String hello(){
        return "hello I am from " + from;
    }
}
